<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "cities".
 * @property int    $id
 * @property string $name
 */
class Cities extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'cities';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['name'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id'   => 'ID',
            'name' => 'Name',
        ];
    }

    /*public function behaviors()
    {
        return array_merge(parent::behaviors(), [
            ['class' => 'AutoTimeBehavior'],
        ]);
    }*/
}
